using ED.Common.BaseModel;
using ED.Model.Request;
using ED.Model.Response;

/// <summary>
/// RolePermission服务
/// </summary>
namespace ED.IService
{
    public interface IRolePermissionService
    {
            /// <summary>
        /// RolePermission查询
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public PageOut<RolePermissRes> Page(RolePermissReq req);

        /// <summary>
        /// RolePermission新增
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public Tuple<bool,string> Add(RolePermissOperateReq req);

        /// <summary>
        /// RolePermission更新
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public Tuple<bool, string> Update(RolePermissOperateReq req);

        /// <summary>
        /// RolePermission删除
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public Tuple<bool, string> Delete(int req);
    }
}
